package sut.edu.zyp.dormitory.manage.entity;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serializable;


@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "public")
public class PublicEntity extends AbstractBaseEntity implements Serializable {

    @Column(length = 16, nullable = false)
    private String name;
    @Column(columnDefinition = "TEXT", nullable = false)
    private String text;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}


